package com.ndbg.demo.service.sign.impl;


import com.alibaba.fastjson.JSONObject;
import com.ndbg.demo.model.sign.ESignRequest;
import com.ndbg.demo.model.sign.SignHeadRequest;

/**
 * @author chenXB
 * @createTime 2023年09月11日 16:54:00
 */
public class ESignApi extends AbstractSign{
    public ESignApi(SignHeadRequest signHeadRequest) {
        super(signHeadRequest);
    }

    /**
     *
     * @param eSignRequest
     */
    public String execute(ESignRequest eSignRequest) {
        JSONObject headObject = assembleHead(eSignRequest);
        return doSign(headObject, JSONObject.toJSONString(eSignRequest));
    }
}
